# -*- coding:utf-8 -*-
"""
@Project : yiclould-autotest 
@file : example.py
@Author : admin
@time : 2022/9/12 11:23
@func :
"""

from handle.handle_log import log


class Example(object):
    """
    一个列子
    """
    def add_num(self, a, b):

        """
        两个数相加
        :param a:
        :param b:
        :return:
        """
        try:
            return a + b
        except Exception as e:
            log.error(e)

    def sub_num(self, a, b):

        """
        两个数相减
        :param a:
        :param b:
        :return:
        """
        try:
            return a - b
        except Exception as e:
            log.error(e)

    def multi_num(self, a, b):
        """
        两个数相乘
        :param a:
        :param b:
        :return:
        """
        try:
            return a * b
        except Exception as e:
            log.error(e)

    def divi_num(self, a, b):
        """
        两个数相乘
        :param a:
        :param b:
        :return:
        """
        try:
            return a / b
        except Exception as e:
            log.error(e)

